package io.bluerain.aclient.core.method;

import io.bluerain.aclient.attach.IndieParam;
import io.bluerain.aclient.core.BaseClient;

import javax.ws.rs.HttpMethod;

/**
 * Created by cuilei on 2015/7/2.
 */
public class HttpPost extends BaseClient {

    private HttpPost() {
    }

    public static HttpPost create(String url, IndieParam params) {
        HttpPost client = new HttpPost();
        client.method(HttpMethod.POST);
        client.param(params);
        client.url(url);
        return client;
    }

    public static HttpPost create(String url) {
        return create(url, null);
    }
}
